package com.tech.comsumer_common.controller;

import com.tech.service.common.DistributeIdService;
import io.swagger.annotations.Api;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author litianlin
 * @date 2023/11/30 10:32
 * @description:
 */
@Api(tags = "分布式id")
@RestController
@RequestMapping("distributeId")
public class DistributeIdController {
    @DubboReference
    private DistributeIdService service;


    @RequestMapping("db")
    public String dbDistributeId() {
        return service.dbDistributeId();
    }

    @RequestMapping("uuid")
    public String uuidDistributeId() {
        return null;
    }

    @RequestMapping("zk")
    public String zkDistributeId() {
        return null;
    }

    @RequestMapping("redis")
    public String redisDistributeId() {
        return null;
    }

    @RequestMapping("snow")
    public String snowDistributeId() {
        return null;
    }
}
